package net.kehk.towerdefense;

import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver;
import com.badlogic.gdx.maps.tiled.TiledMap;
import com.badlogic.gdx.maps.tiled.TmxMapLoader;

public class ResourceManager {
	private AssetManager am;
	public ResourceManager(){
		this.am=new AssetManager();
		am.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));
	}

	public TiledMap loadMap(String map_name){
		return new TmxMapLoader().load(map_name);
	}


}
